#ifndef __COM_H__
#define __COM_H__

//#include <afxwin.h>
#include <windows.h>

class CCom
{
public:
	CCom(void);
	~CCom(void);

public:
	BOOL OpenCOM(int iPort, int nRate);
	void Close();
	int  Read(char* buffer, int iMaxLength);
	int Write(char* buffer, int iLength);
	char *GetcmdChar(int index);

public:
	HANDLE m_hHandle;
};

#endif
